repo: Handle parent repos with different remote configuration
authorAlexander Larsson <alexl@redhat.com>
Fri, 22 Apr 2016 08:28:53 +0000 (10:28 +0200)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Fri, 22 Apr 2016 14:38:00 +0000 (14:38 +0000)
commitf2fd1f50e23da45860ef57acdf3a77198a1c3760
tree5ca091b4a5b8cd257189d885dd16152fd42392c0
parentc2931583d3df106358d23080e49b9a6572b3b1fb
repo: Handle parent repos with different remote configuration

In the case we have a repo with a parent, and the child repo has a
remote called "foo", but some option is unset. Then when we look up
the parent repo for a value before using the default we will fail due
to the parent not having the "foo" remote. As soon as we find the
requested remote at some point in the hierarchy we need to ignore further
errors and use the default value.

Closes: #274
Approved by: giuseppe
src/libostree/ostree-repo.c